package com.ruoyi.order.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.order.mapper.ShopActMapper;
import com.ruoyi.order.domain.ShopAct;
import com.ruoyi.order.service.IShopActService;

/**
 * 商品订单Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-11-21
 */
@Service
public class ShopActServiceImpl implements IShopActService 
{
    @Autowired
    private ShopActMapper shopActMapper;

    /**
     * 查询商品订单
     * 
     * @param id 商品订单主键
     * @return 商品订单
     */
    @Override
    public ShopAct selectShopActById(Long id)
    {
        return shopActMapper.selectShopActById(id);
    }

    /**
     * 查询商品订单列表
     * 
     * @param shopAct 商品订单
     * @return 商品订单
     */
    @Override
    public List<ShopAct> selectShopActList(ShopAct shopAct)
    {
        return shopActMapper.selectShopActList(shopAct);
    }

    /**
     * 新增商品订单
     * 
     * @param shopAct 商品订单
     * @return 结果
     */
    @Override
    public int insertShopAct(ShopAct shopAct)
    {
        return shopActMapper.insertShopAct(shopAct);
    }

    /**
     * 修改商品订单
     * 
     * @param shopAct 商品订单
     * @return 结果
     */
    @Override
    public int updateShopAct(ShopAct shopAct)
    {
        return shopActMapper.updateShopAct(shopAct);
    }

    /**
     * 批量删除商品订单
     * 
     * @param ids 需要删除的商品订单主键
     * @return 结果
     */
    @Override
    public int deleteShopActByIds(Long[] ids)
    {
        return shopActMapper.deleteShopActByIds(ids);
    }

    /**
     * 删除商品订单信息
     * 
     * @param id 商品订单主键
     * @return 结果
     */
    @Override
    public int deleteShopActById(Long id)
    {
        return shopActMapper.deleteShopActById(id);
    }
}
